package XB;

public class Inspect {
    double money;
    public Inspect(int money) {
        this.money = money;
    }
    public void look(Laboratory laboratory,Inspect inspect,String[] a){
        int i;
        int money1=0;
        inspect.money=0;
        for(i=0;i<5;i++){
            if(laboratory.degree[i]=="优"){
                money1=money1+1200;
            }
            if(laboratory.degree[i]=="良"){
                money1=money1+800;
            }
            if(laboratory.degree[i]=="及格"){
                money1=money1+600;
            }
        }
        for(i=0;i<5;i++){
            a[i]=laboratory.degree[i];
        }
        inspect.money=money1;
}}
